package com.transer.utils;

import java.io.File;

public class FileUtils {
	public static void saveAs(File src, String destPath, String destFileName) {
		if (src == null || !src.exists() || !src.isFile()) {
			return;
		}

		File dest = new File(destPath);

		if (!dest.exists()) {
			dest.mkdirs();
		}

		dest = new File(destPath + Utils.SEPARATOR_FILE + destFileName);

		src.renameTo(dest);
	}
}
